package com.itboye.lottery.widget.medium_textview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import org.jsoup.nodes.Element;

/**
 * DivView
 * <p>
 * Created by Mr.w on 2018/9/11.
 * <p>
 * 版本      ${version}
 * <p>
 * 修改时间
 * <p>
 * 修改内容
 */

public class DivView extends ElementView {

    public DivView(Context context, Element element) {
        super(context, element);
    }

    public DivView(Context context, AttributeSet attrs, Element element) {
        super(context, attrs, element);
    }

    @Override
    public void render() {
        setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT));
        setOrientation(LinearLayout.VERTICAL);

        if(getElement() != null){
            if(getElement().children().size()>0){
                Utils.appendView(this,getElement().children());
            }
        }
    }
}
